package com.wsfk.ssm.tools;

import java.util.Random;

public class DownloadNumUtil {

	public static String random(int length){
		String str="abcdefghijkmnpqrstuvwxyzABCDEFGHIJKLMNPQRSTUVWXYZ23456789";
				
		Random random=new Random();             
		StringBuffer sb=new StringBuffer();  
		
		for(int i=0;i<length;i++){  
		
			int number =random.nextInt(str.length()-1);  
		
			sb.append(str.charAt(number));  
		}
		return sb.toString();
	}
	
	public static String random(String startStr,int length){
		return startStr+random(length);
	}
}
